package cn.com.jinhao.hotline.commons.vo;

import cn.com.jinhao.hotline.commons.base.ExportHeader;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotNull;

/**
 * hotline-spring-cloud
 * <p>Description: </p>
 *
 * @author ShaneMew
 * @version 1.0
 * @date 2020/6/4
 * @since 2020/6/4
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ConditionRequestVO extends ExportHeader {
    @ApiModelProperty(value = "页数")
    @NotNull(message = "缺少页数(pageNo)")
    protected Integer pageNo = 0;

    @ApiModelProperty(value = "每页显示的记录条数")
    @NotNull(message = "缺少每页显示的记录条数(pageSize)")
    protected Integer pageSize = 20;

    @ApiModelProperty(value = "是否导出")
    @NotNull(message = "缺少是否导出(isExport)")
    protected Boolean isExport = false;
}
